helloApp.controller('HobbiesEditCtrl', function ($scope, $http, $stateParams, HobbyService) {

    $scope.formAddHobby = {};

    $scope.deleteHobby = function (index) {

        $scope.hobbies.splice(index, 1);

        return false;
    };

    $scope.addHobby = function () {

        $scope.hobbies.push(this.formAddHobby);
        this.formAddHobby = {};

        return false;
    };
});